package com.dao;

import com.model.Score;
import com.model.dto.ScoreDTO;
import com.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreMapper {
    int findScoreCount(@Param("clazzCodes") List<String> clazzCodes, @Param("search") String search);

    void updateScore(@Param("score") Score score);

    void saveScore(@Param("score") Score score);

    void delScore(@Param("ids") List<Long> ids);

    List<ScoreDTO> findScores(@Param("clazzCodes") List<String> clazzCodes, @Param("search") String search, @Param("pageParam") PageParam pageParam);

    List<ScoreDTO> findUserScores(@Param("id") Long id);
}
